<template>
    <view>
        <u-card title="参与情况问卷">
            <view class="" slot="body">
                <u-form :model="form" ref="uForm">
                    <u-form-item label="您经常使用过在线竞赛报名系统吗？" label-position="top">
                        <u-radio-group v-model="form.v1">
                            <u-radio name="是">是</u-radio>
                            <u-radio name="否">否</u-radio>
                        </u-radio-group>
                    </u-form-item>
                    <u-form-item label="使用该竞赛系统是否简化了您的报名程序?" label-position="top">
                        <u-radio-group v-model="form.v2">
                            <u-radio name="是">是</u-radio>
                            <u-radio name="否">否</u-radio>
                        </u-radio-group>
                    </u-form-item>
                    <u-form-item label="您对该系统的满意度" label-position="top"><u-rate :count="10" v-model="form.v3"></u-rate></u-form-item>
                    <u-form-item label="通过使用该系统您可以及时的接收到报名的通知吗？" label-position="top">
                        <u-radio-group v-model="form.v4">
                            <u-radio name="是">是</u-radio>
                            <u-radio name="否">否</u-radio>
                        </u-radio-group>
                    </u-form-item>
                    <u-form-item label="对该系统还有哪些建议?" label-position="top"><u-input v-model="form.v5" /></u-form-item>
                    <u-form-item label="平时你会从哪些渠道得知报名信息" label-position="top"><u-input v-model="form.v6" /></u-form-item>
                </u-form>
            </view>
        </u-card>
        <view class="bt"><u-button type="info" @click="sub" shape="square">提交</u-button></view>
        <view style="height: 10rpx;"></view>
    </view>
</template>

<script>
export default {
    data() {
        return {
            form: {
                v1: '',
                v2: '',
                v3: '',
                v4: '',
                v5: ''
            }
        }
    },
    onLoad() {},
    methods: {
        sub() {
            this.$u.post('/apps/ssKonwEntity', this.form).then(res => {
                if (res.code == 200) {
                    this.$u.route({
                        type: 'tab',
                        url: 'pages/notice/notice_list'
                    })
                } else {
                    this.$refs.uToast.show({
                        title: '提交失败'
                    })
                }
            })
        }
    }
}
</script>

<style lang="less" scoped>
.bt {
    margin: 10rpx 20rpx 20rpx 20rpx;
}
</style>
